<script type="text/javascript">
	$(document).ready(function(){
		var $items = $("ul#menu li a");
		$items.eq(<?php if(isset($act)){echo $act;}else{ echo 0;} ?>).addClass("selected_lk");
	});
</script>
<div id="header_main_menu">
		<span id="header_main_menu_bg"></span>
		<div id="header">
			<div class="inner" style="margin-bottom:5px">
				<h1 id="logo"><a href="<?php echo base_url()."admin/index"; ?>"><img src="<?php echo base_url(); ?>public/images/logo.png" /></a></h1>
				<div id="user_details">
					<ul id="user_details_menu">
						<li class="welcome">Welcome <strong><?php echo $this->session->userdata("ses_user"); ?>(<a class="new_messages" href="#">0 new message</a>)</strong></li>
						<li>
							<ul id="user_access">
								<li class="first"><a href="<?php echo base_url()?>" target="_blank">View home</a></li>
								<li class="last"><a href="<?php echo base_url()."admin/verify/logout";?>">Log out</a></li>
							</ul>
						</li>
					</ul>
					<div id="server_details">
						<dl>
							<dt>Server time :</dt>
							<dd><?php echo date("H:i:s - d/m/Y"); ?></dd>
						</dl>
						<dl>
							<dt>Login ip :</dt>
							<dd><?php echo $_SERVER['REMOTE_ADDR']; ?></dd>
						</dl>
					</div>
				</div>
			</div>
		</div>
		<div id="main_menu">
			<div class="inner">
			<ul id="menu">
				<li><a href="<?php echo base_url()."admin/index"; ?>"><span class="l"><span></span></span><span class="m"><em>Home</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="<?php echo base_url()."admin/user"; ?>"><span class="l"><span></span></span><span class="m"><em>Users</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="<?php echo base_url()."admin/checkrate"; ?>"><span class="l"><span></span></span><span class="m"><em>HaNoi - Sapa Tickets</em><span></span></span><span class="r"><span></span></span></a>
                	<ul>
                    	<li><a href="<?php echo base_url()."admin/checkrate/addtick"; ?>">Add or update ticket</a></li>
                        <li><a href="<?php echo base_url()."admin/checkrate/closeopen"; ?>">Close ticket</a></li>
                    </ul>
                </li>
                <li><a href="<?php echo base_url()."admin/tickets"; ?>"><span class="l"><span></span></span><span class="m"><em>Orther tickets</em><span></span></span><span class="r"><span></span></span></a>
                    <ul>
                    	<li><a href="<?php echo base_url()."admin/tickets/addtick"; ?>">Add or update ticket</a></li>
                        <li><a href="<?php echo base_url()."admin/tickets/closeopen"; ?>">Close ticket</a></li>
                    </ul>
                </li>
                <li><a href="<?php echo base_url()."admin/content"; ?>"><span class="l"><span></span></span><span class="m"><em>Questions</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="<?php echo base_url()."admin/trains"; ?>"><span class="l"><span></span></span><span class="m"><em>Trains</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="<?php echo base_url()."admin/intro"; ?>"><span class="l"><span></span></span><span class="m"><em>Introdution</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="<?php echo base_url()."admin/destination"; ?>"><span class="l"><span></span></span><span class="m"><em>Destination</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="<?php echo base_url()."admin/regions"; ?>"><span class="l"><span></span></span><span class="m"><em>Regions</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="javascript:void(0)"><span class="l"><span></span></span><span class="m"><em>Orthers</em><span></span></span><span class="r"><span></span></span></a>
                	<ul>
	                    <li><a href="<?php echo base_url()."admin/news"; ?>"><span class="l"><span></span></span><span class="m"><em>News</em><span></span></span><span class="r"><span></span></span></a></li>
	                <li><a href="<?php echo base_url()."admin/services"; ?>"><span class="l"><span></span></span><span class="m"><em>Services</em><span></span></span><span class="r"><span></span></span></a></li>
	                <li><a href="<?php echo base_url()."admin/ordership"; ?>"><span class="l"><span></span></span><span class="m"><em>Orders</em><span></span></span><span class="r"><span></span></span></a></li>
	                <li><a href="<?php echo base_url()."admin/trainmap"; ?>"><span class="l"><span></span></span><span class="m"><em>Train map</em><span></span></span><span class="r"><span></span></span></a></li>
                    </ul>
                </li>
			</ul>
			</div>
			<span class="sub_bg"></span>
		</div>
		<!--[if !IE]>end main menu<![endif]-->
		</div>